import { addManyAcross } from '@/apis/acrossAPI'
import { addModels } from './readXlsx'
import * as XLSX from 'xlsx'

export async function readAcross(wb: XLSX.WorkBook, id: number) {
  const model = {
    btName: '',
    acrossName: '',
    acrossX: 0,
    acrossY: 0,
    controlHeight: 0,
    remark: '',
    betId: 1,
  } as AcrossModel
  await addModels(wb, 'across', model, addManyAcross, id)
}
